//package com.czh.rdm.ktorm.entity
//
//import org.ktorm.entity.Entity
//import org.ktorm.schema.Table
//import org.ktorm.schema.datetime
//import org.ktorm.schema.int
//import org.ktorm.schema.long
//import org.ktorm.schema.varchar
//import java.time.LocalDateTime
//
//interface User : BaseEntity<User> {
//    companion object : Entity.Factory<User>()
////    val id: Long
////    val creator: Long
////    val createdTime: LocalDateTime
////    val updater: Long
////    val updatedTime: LocalDateTime
////    var deleted: Long
//    val nickname: String
//    val email: String
//    val password: String
//    val lastLoginTime: LocalDateTime
//    val lastLoginIp: String
//    val salt: String
//    val status: Int
//    val phone: String
//    val phoneEncrypt: String
//}
//
//object Users : Table<User>("user", schema = "user_info") {
//    val id = long("id").primaryKey().bindTo { it.id }
//    val creator = long("creator").bindTo { it.creator }
//    val createdTime = datetime("created_time").bindTo { it.createdTime }
//    val updater = long("updater").bindTo { it.updater }
//    val updatedTime = datetime("updated_time").bindTo { it.updatedTime }
//    val deleted = long("deleted").bindTo { it.deleted }
//    val nickname = varchar("nickname").bindTo { it.nickname }
//    val email = varchar("email").bindTo { it.email }
//    val password = varchar("password").bindTo { it.password }
//    val lastLoginTime = datetime( "last_login_time").bindTo { it.lastLoginTime }
//    val lastLoginIp = varchar("last_login_ip").bindTo { it.lastLoginIp }
//    val salt = varchar("salt").bindTo { it.salt }
//    val status = int("status").bindTo { it.status }
//    val phone = varchar("phone").bindTo { it.phone }
//    val phoneEncrypt = varchar("phone_encrypt").bindTo { it.phoneEncrypt }
//}